<div><button class="layui-btn layui-btn-lg layui-btn-primary" id="export-univ">打印Word文档</button></div>
<div id="univ-view" align='center' style='layout-grid:15.6pt'>

    <table border=0 cellspacing=0 cellpadding=0 width=696
           style='border-collapse:collapse;font-size:11.0pt;font-family:宋体'>
        <tr height=40>
            <td valign=top colspan=5
                style='text-align:center;font-size:16.0pt;color:teal;font-weight:bold'>
                院校信息表
            </td>
        </tr>
        <tr height=28>
            <td width=25% colspan=2 style='border:solid teal 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'>
                <span style='color:teal'>院校代号　</span>
                <span style='font-size:13.0pt;font-family:"Courier New";font-weight:bold'>{{instId}}</span>
            </td>
            <td width=25% style='border:solid teal 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt'>
                <span style='color:teal'>院校代码　</span>
                <span style='font-size:13.0pt;font-family:"Courier New";font-weight:bold'>{{instCode}}</span>
            </td>
            <td width=12% style='border:solid teal 1.0pt;border-left:none;border-right:none;
  padding:0cm 0cm 0cm 5.4pt;color:teal'>院校名称
            </td>
            <td width=38% style='border:solid teal 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 0cm'>{{instName}}
            </td>
        </tr>
        <tr height=28>
            <td width=16% style='border:solid teal 1.0pt;border-top:none;border-right:none;
  padding:0cm 0cm 0cm 5.4pt;color:teal'>计划属性
            </td>
            <td width=84% colspan=4 style='border:solid teal 1.0pt;border-top:none;border-left:none;
  padding:0cm 5.4pt 0cm 0cm'><span>{{planPropId}}</span><span> {{planPropName}}</span>
            </td>
        </tr>
        <tr height=48>
            <td width=16% style='border:solid teal 1.0pt;border-top:none;border-right:none;
  padding:0cm 0cm 0cm 5.4pt;color:teal'>院校地址
            </td>
            <td width=84% colspan=4 style='border:solid teal 1.0pt;border-top:none;border-left:none;
  padding:0cm 5.4pt 0cm 0cm'><span>{{instAddr}}</span>
            </td>
        </tr>
        <tr height=28>
            <td width=25% colspan=2 style='border:solid teal 1.0pt;border-top:none;
  padding:0cm 5.4pt 0cm 5.4pt'>
                <span style='color:teal'>邮政编码　</span>
                <span style='font-size:13.0pt;font-family:"Courier New";font-weight:bold'>{{postalCode}}</span>
            </td>
            <td width=75% colspan=3 style='border:solid teal 1.0pt;border-top:none;border-left:none;
  padding:0cm 5.4pt 0cm 5.4pt'>
                <span style='color:teal'>所在省市　</span><span>{{provinceId}}</span><span> {{provinceName}}</span>
            </td>
        </tr>
        <tr height=28>
            <td width=50% colspan=3 style='border:solid teal 1.0pt;border-top:none;
  padding:0cm 5.4pt 0cm 5.4pt'>
                <span style='color:teal'>主管部门　</span><span>{{adminDeptId}}</span><span> {{adminDeptName}}</span>
            </td>
            <td width=50% colspan=2 style='border:solid teal 1.0pt;border-top:none;border-left:none;
  padding:0cm 5.4pt 0cm 5.4pt'>
                <span style='color:teal'>院校举办者　</span><span>{{schSponsorId}}</span><span> {{schSponsorName}}</span>
            </td>
        </tr>
        <tr height=28>
            <td width=25% colspan=2 style='border:solid teal 1.0pt;border-top:none;
  padding:0cm 5.4pt 0cm 5.4pt'>
                <span style='color:teal'>是否211　</span>
                <span>{{is211}}</span>
            </td>
            <td width=25% style='border:solid teal 1.0pt;border-top:none;border-left:none;
  padding:0cm 5.4pt 0cm 5.4pt'>
                <span style='color:teal'>是否985　</span>
                <span>{{is985}}</span>
            </td>
            <td width=50% colspan=2 style='border:solid teal 1.0pt;border-top:none;border-left:none;
  padding:0cm 5.4pt 0cm 5.4pt'>
                <span style='color:teal'>是否双一流　</span>
                <span>{{isDouFstClz}}</span>
            </td>
        </tr>

        <tr height=28>
            <td width=16% style='border:solid teal 1.0pt;border-top:none;border-right:none;
  padding:0cm 0cm 0cm 5.4pt;color:teal'>高职标志
            </td>
            <td width=84% colspan=4 style='border:solid teal 1.0pt;border-top:none;border-left:none;
  padding:0cm 5.4pt 0cm 0cm'>
            </td>
        </tr>
        <tr height=28>
            <td width=16% style='border:solid teal 1.0pt;border-top:none;border-right:none;
  padding:0cm 0cm 0cm 5.4pt;color:teal'>主页地址
            </td>
            <td width=84% colspan=4 style='border:solid teal 1.0pt;border-top:none;border-left:none;
  padding:0cm 5.4pt 0cm 0cm'><span>{{indexUrl}}</span>
            </td>
        </tr>
        <tr height=28>
            <td width=16% style='border:solid teal 1.0pt;border-top:none;border-right:none;
  padding:0cm 0cm 0cm 5.4pt;color:teal'>招生章程文件
            </td>
            <td width=84% colspan=4 style='border:solid teal 1.0pt;border-top:none;border-left:none;
  padding:0cm 5.4pt 0cm 0cm'><span>{{enrollDoc}}</span>
            </td>
        </tr>
        <tr height=28>
            <td width=16% style='border:solid teal 1.0pt;border-top:none;border-right:none;
  padding:0cm 0cm 0cm 5.4pt;color:teal'>招生章程网址
            </td>
            <td width=84% colspan=4 style='border:solid teal 1.0pt;border-top:none;border-left:none;
  padding:0cm 5.4pt 0cm 0cm'>{{enrollUrl}}
            </td>
        </tr>
        </tr>
        <tr height=48>
            <td width=16% style='border:solid teal 1.0pt;border-top:none;border-right:none;
  padding:0cm 0cm 0cm 5.4pt;color:teal'>备　　注
            </td>
            <td width=84% colspan=4 style='border:solid teal 1.0pt;border-top:none;border-left:none;
  padding:5.4pt 5.4pt 5.4pt 0cm'><span>{{note}}</span>
            </td>
        </tr>
        <tr height=0>
            <td width=16% style='border:none'></td>
            <td width=7% style='border:none'></td>
            <td width=25% style='border:none'></td>
            <td width=12% style='border:none'></td>
            <td width=38% style='border:none'></td>
        </tr>
    </table>
<script>
    layui.use(['form', 'table', 'util', 'config', 'admin'], function () {
        var form = layui.form;
        var table = layui.table;
        var config = layui.config;
        var layer = layui.layer;
        var util = layui.util;
        var admin = layui.admin;
        let data = {};
        admin.req('api-firebird/fireBird/getUnivInfo',{},function (res) {
            data = res.data;
            console.log(res);
        },'GET');
        $.each(data,function (key,val) {
            if (data[key]==null)
                data[key]='';
        });
        if (data.is985==0)
            data.is985 = '否'
        else 
            data.is985 = '是';
        if (data.is211==0)
            data.is211 = '否'
        else
            data.is211 = '是';
        if (data.isDouFstClz==1)
            data.isDouFstClz = '世界一流大学建设高校A类';
        else if (data.isDouFstClz==2)
            data.isDouFstClz = '世界一流大学建设高校B类';
        else if (data.isDouFstClz==3)
            data.isDouFstClz = '世界一流学科建设高校';
        else
            data.isDouFstClz = '否';
            $("#univ-view").vm(data);
        $("#export-univ").click(function () {
            console.log(data);
            admin.req('api-firebird/fireBird/exportUnivInfo',JSON.stringify(data),function (res) {
                    layer.alert(res.msg);
            },'POST');
        });
    })
</script>
</div>
